package org.jeecg.modules.compilation.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;

@Data
@EqualsAndHashCode(callSuper = false)

@Accessors(chain = true)
@ApiModel(description = "公文类型名字和部门名字查询")
public class ScreenDTO {




    /**公文类型名称*/
    @Excel(name = "公文类型名称", width = 15)
    @ApiModelProperty(value = "公文类型名称")
    private String documentTypeName;
    @Excel(name = "时间", width = 15)
    @ApiModelProperty(value = "时间")
    private String time;


    /**公文类型名称*/
    @Excel(name = "部门类型名称", width = 15)
    @ApiModelProperty(value = "部门类型名称")
    private String departmentName;

    /**发布日期*/
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd ")
    @ApiModelProperty(value = "开始日期")
    private LocalDate beginDate;
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd ")
    @ApiModelProperty(value = "结束日期")
    private LocalDate endDate;

    /**启用状态*/
    @Excel(name = "启用状态", width = 15)
    @ApiModelProperty(value = "启用状态")
    private String enableFlag;
}
